/*笑话模块*/
angular_frame_app.config(
  function($stateProvider) {
    $stateProvider
      .state('angular_frame.smileStories', {
        url: '/smileStories',
        templateUrl: '/frontend/views/smileStories/index.html',
        controller: function($scope, $state, SmileStory) {
          $scope.page_header_title = '笑话集';
          var data = {
            maxResult: 20,
            page: 1,
            showapi_appid: 19764,
            showapi_timestamp: 20160601160710,
            time: '2015-07-10',
            showapi_sign: '70d6c6ce5473c2f7bd25ab73a676e608'
          }
          SmileStory.query(data, function(result) {
            $scope.data = result.showapi_res_body.contentlist
            $scope.error = result.showapi_res_error

          })
        }
      })
  })